<%-- 
    Document   : Winners
    Created on : Aug 9, 2012, 12:42:09 AM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="/WEB-INF/taglib139.tld" prefix="pg" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>Winners</title>
        <link rel="stylesheet" href="CSS/style_1.css" type="text/css" charset="utf-8" />
        <link type="text/css" href="CSS/humanity/jquery-ui-1.8.17.custom.css" rel="stylesheet" />
        <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
        <script type="text/javascript" src="js/jquery-1.6.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
        <script type="text/javascript" src="js/additional-methods.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        <script>
            $(function() {
                $("#date").datepicker({ dateFormat: 'dd/mm/yy' });
                $("#dates").datepicker({ dateFormat: 'dd/mm/yy' });
                $("#testForm").validate({
                    rules:{
                        txtStarts: {
                            required:true
                        },
                        txtEnds: {
                            required:true
                        }
                    }
                })
            });

        </script>
    </head>
    <body>
        <div id="wrapper">
            <div id="header"> </div>
            <div id="left">
                <%
                    String users = (String) session.getAttribute("login");
                    if (users == null) {
                        response.sendRedirect("LoginForm.jsp");
                    }
                %>
                <div id="logo">
                    <h1>Four Idiots</h1>
                    <p>Company Portal</p>
                </div>
                <div id="nav">
                    <ul>
                        <li class="important"><a href="Home.jsp">Home</a></li>
                        <li><a href="index.jsp">Events</a></li>
                        <li><a href="Statistic.jsp">Statistic</a></li>
                        <li><a href="FeedBack.jsp">FeedBack</a></li>
                        <li><a href="Winners">Winners</a></li>
                        <li><a href="Help.jsp">Help</a></li>
                        <li><a href="LoginForm.jsp">Logout</a></li>
                    </ul>
                </div>
                <div id="news">

                </div>
                <div id="support">
                    <p><b>Phone:01652-384-764</b></p>
                    <p><b>Email:support@fouridiots.com</b></p>
                </div>
            </div>
            <div id="right">
                <h2>Winners</h2>
                <div align="right">
            
                <br/>
                <c:if test="${empty requestScope.detail}">
                    <div align="center">
                        <table  style="width:100%" boder="1px">
                            <tr id="rowTable">
                                <th>Name Account</th>
                                <th>Mark</th>
                                <th></th>
                            </tr>

                                <pg:paging pageSize="5">
                                    <jsp:useBean id="FeedBack" class="Models.adapterFeedBack"></jsp:useBean>
                                    <c:forEach items="${FeedBack.allTopFeedBack}" var="f">
                                        <pg:item>
                                            <tr id="rowTable">
                                                <th>${f.userCustomer}</th>
                                                <th>${f.mark}</th>
                                                <c:url var="Detail" value="Controllers" >
                                                    <c:param name="txtTen" value="${f.userCustomer}"></c:param>
                                                    <c:param name="btAction" value="DetailPage"></c:param>
                                                </c:url>
                                                <th><a href="${Detail}">Detail</a></th>
                                            </tr>
                                        </pg:item>
                                    </c:forEach>

                                    <pg:index>
                                        <pg:page><%=thisPage%></pg:page>
                                        <pg:firstPage>[First]</pg:firstPage>
                                        <pg:lastPage>[Last]</pg:lastPage>
                                    </pg:index>
                                </pg:paging>
                        </table>

                    </div>
                </c:if>
                <div align="center">
                    <table style="width: 100%">
                        <c:if test="${not empty requestScope.detail}">
                            <c:forEach items="${requestScope.detail}" var="c">
                                <tr id="rowTable">
                                    <th colspan="2" align="center" >Information Detail</th>
                                </tr>
                                <tr align="left" id="rowTable">
                                    <th>Name Event</th>
                                    <th>${c.nameEvent}</th>
                                </tr>
                                <tr align="left" id="rowTable">
                                    <th>Name Account</th>
                                    <th>${c.userCustomer}</th>

                                </tr>
                                <tr align="left" id="rowTable">
                                    <th>FullName</th>
                                    <th>${c.fullName}</th>

                                </tr>
                                <tr align="left" id="rowTable">
                                    <th>Dob</th>
                                    <th>${c.dob}</th>

                                </tr>
                                <tr align="left" id="rowTable">
                                    <th>Email</th>
                                    <th>${c.email}</th>

                                </tr>
                                <tr align="left" id="rowTable">
                                    <th>Phone</th>
                                    <th>${c.phoneNumber}</th>

                                </tr>
                                <tr align="left" id="rowTable">
                                    <th>Address</th>
                                    <th>${c.address}</th>

                                </tr>
                                <tr id="rowTable">
                                    <th colspan="2" align="left">
                                        <a href="Winners.jsp"> <<&nbsp;Back</a>
                                    </th>
                                </tr>
                            </c:forEach>
                        </c:if>
                    </table>
                </div>
            </div>
            <div class="clear"> </div>
            <div id="spacer"> </div>

            <div id="footer">
                <div id="copyright">
                    Copyright &copy; 2012 Four Idiots Company All right reserved.
                </div>
                <div id="footerline"></div>
            </div>

        </div>
    </body>
</html>
